package com.leonwoodstudio.eventdetectionclient.eventmessage;

import java.util.Date;

/**
 * Created by win7 on 2017/4/8.
 */
public class ParsedEventMessageToSave {
    String url;
    String pic_name;
    String date;
    String camera_idx;
    String lane_inx;
    String event_type;
    String coordinate_x;
    String coordinate_y;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ParsedEventMessageToSave that = (ParsedEventMessageToSave) o;

        if (!url.equals(that.url)) return false;
        if (!pic_name.equals(that.pic_name)) return false;
        if (!date.equals(that.date)) return false;
        if (!camera_idx.equals(that.camera_idx)) return false;
        if (!lane_inx.equals(that.lane_inx)) return false;
        if (!event_type.equals(that.event_type)) return false;
        if (!coordinate_x.equals(that.coordinate_x)) return false;
        return coordinate_y.equals(that.coordinate_y);

    }

    @Override
    public int hashCode() {
        int result = url.hashCode();
        result = 31 * result + pic_name.hashCode();
        result = 31 * result + date.hashCode();
        result = 31 * result + camera_idx.hashCode();
        result = 31 * result + lane_inx.hashCode();
        result = 31 * result + event_type.hashCode();
        result = 31 * result + coordinate_x.hashCode();
        result = 31 * result + coordinate_y.hashCode();
        return result;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setPic_name(String pic_name) {
        this.pic_name = pic_name;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setCamera_idx(String camera_idx) {
        this.camera_idx = camera_idx;
    }

    public void setLane_inx(String lane_inx) {
        this.lane_inx = lane_inx;
    }

    public void setEvent_type(String event_type) {
        this.event_type = event_type;
    }

    public void setCoordinate_x(String coordinate_x) {
        this.coordinate_x = coordinate_x;
    }

    public void setCoordinate_y(String coordinate_y) {
        this.coordinate_y = coordinate_y;
    }

    public String getPic_name() {
        return pic_name;
    }

    public String getDate() {
        return date;
    }

    public String getCamera_idx() {
        return camera_idx;
    }

    public String getLane_inx() {
        return lane_inx;
    }

    public String getEvent_type() {
        return event_type;
    }

    public String getCoordinate_x() {
        return coordinate_x;
    }

    public String getCoordinate_y() {
        return coordinate_y;
    }
}
